curr_date=`date "+%Y-%m-%d %H:%M:%S"`
echo ${curr_date}
curr_seconds=`date -d "${curr_date}" +%s`
echo ${curr_seconds}
hour_ago_seconds=`expr ${curr_seconds} - 3600`
echo ${hour_ago_seconds}
hour_ago=`date -d @${hour_ago_seconds} "+%Y-%m-%d %H:%M:%S"`
echo ${hour_ago}